#include"Thread.hpp"  
using namespace ThreadModlue;
void Count(int cnt){
    while(cnt--){
        std::cout<<"Counting..."<<std::endl;
        sleep(1);
    }
}
int main()
{
    int cnt=5;
    Thread<int> t(Count,cnt);
    t.Start();
    t.Detach();
    sleep(2);
    t.Join();
    t.Stop();
   return 0;
}